﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Oliving.Edge.Model.DtoUI
{
    /// <summary>
    /// 级联选择器 选项对象
    /// </summary>
    public class CascaderOptionsDto
    {
        /// <summary>
        /// ID , 值
        /// </summary>
        public string value { get; set; }
        /// <summary>
        ///  父节点 code
        ///  
        /// </summary>
        public string ParentCode { get; set; }


        /// <summary>
        ///  显示值
        /// </summary>
        public string label { get; set; }
        public List<CascaderOptionsDto>? children { get; set; } //= new List<CascaderOptionsDto>();

    }




    /// <summary>
    /// 公司与项目结合的tree 结构对象
    /// </summary>
    public class TreeDto_ComPro
    {



        /// <summary>
        /// ID , 值
        /// </summary>
        public string value { get; set; }
        /// <summary>
        ///  父节点 code
        ///  
        /// </summary>
        public string ParentCode { get; set; }


        /// <summary>
        ///  显示值
        /// </summary>
        public string label { get; set; }
        public List<TreeDto_ComPro>? children { get; set; } //= new List<CascaderOptionsDto>();


        /// <summary>
        /// 公司编号
        /// </summary>
        public string CompanyID { get; set; }
        /// <summary>
        ///  项目编号
        /// </summary>
        public string ProjectID { get; set; }
    }


}
